package cn.com.chengmandian.service.erp.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@Accessors(chain=true)
public class DingDingMsgForm implements Serializable {

    @ApiModelProperty("消息类型(DingDingMsgTypeEnum)")
    private String msgType;

    @ApiModelProperty("接收用户id")
    private List<Integer> userId;

    @ApiModelProperty("消息类型文本信息")
    private DingTextMsgForm dingTextMsgForm;

    @ApiModelProperty("消息类型图片信息")
    private DingImgMsgForm dingImgMsgForm;

    @ApiModelProperty("消息类型链接")
    private DingLinkMsgForm dingLinkMsgForm;

    @Data
    @NoArgsConstructor
    @Accessors(chain=true)
    public class DingTextMsgForm{

        @ApiModelProperty("消息体")
        private String content;
    }

    @Data
    @NoArgsConstructor
    @Accessors(chain=true)
    public class DingImgMsgForm{

        @ApiModelProperty("图片地址")
        private String imageUrl;
    }

    @Data
    @NoArgsConstructor
    @Accessors(chain=true)
    public class DingLinkMsgForm{

        @ApiModelProperty("消息点击链接地址")
        private String messageUrl;

        @ApiModelProperty("消息图片")
        private String picUrl;

        @ApiModelProperty("消息标题")
        private String title;

        @ApiModelProperty("消息描述")
        private String text;
    }

}
